package com.helper.easyHelper.utils;

import com.google.common.base.CaseFormat;


/**
 * @author 狠穿
 * @version 1.0.0
 * @date 2023/1/29
 * @function 类名和包名工具类
 */
public class PCUtils {

    public static String getBaseName(String tableName) {

        String baseName = tableName;
        if (baseName.startsWith("T") || baseName.startsWith("t")) {
            baseName = baseName.substring(baseName.indexOf("_") + 1);
        }
        baseName = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, baseName);
        return baseName;
    }



}
